import request from '@/config/axios'

//消息相关接口



//消息列表
export const dataList = (params) => {
    return request.get({ url: 'message/index',params })
}


//修改为已读
export const dataUpdate = (data) => {
    return request.post({ url: '/message/read', data })
}

//获取未读消息数
export const dataCount = (params) => {
    return request.get({ url: '/message/count', params })
}


//获取最新消息
export const dataLatest = () => {
    return request.get({ url: '/message/latest' })
}